<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Orders extends Model
{
    protected $table='orders';
    protected $guarded=[];
    public function users(){
        return $this->belongsTo('App\Http\Model\User','user_id');
    }
    public function address(){
        return $this->belongsTo('App\Http\Model\Address','address_id');
    }
    public function ordersInfo(){
        return $this->hasMany('App\Http\Model\OrdersInfo','orders_id');
    }
}
